Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise on multiple invocations of javascript_pack_tag and stylesheet_pack_tag helpers #19

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

tomdracz
Copy link
Collaborator

Addresses #17

Adapted from rails#3083 by @guillaumebriday

Multiple calls to javascript_pack_tag and stylesheet_pack_tag will now raise an error as they can result with duplicate files being loaded

lib/webpacker/helper.rb Outdated Show resolved Hide resolved
@justin808
Copy link
Member

Very simple and nice! For sure, we'd like a more "it just works" solution, but this is good for now. I think we can document some of the workaround techniques in another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants